use clap::Parser;
use todo::commands::Opts;
use todo::storage::storage::SqliteStorage;
use todo::ExecuteCommand;

fn main() {
    let opts = Opts::parse();

    let storage = SqliteStorage::new().expect("无法创建 Sqlite 存储");

    opts.execute_command(&storage).expect("执行失败");
}